{% extends "endo/base.html" %}
{% load blurb %}

{% block title %}{{ block.super }} | Testimonials{% endblock %}

{% block article %}
    <h6><a href="{% url cm_s_main %}">Home</a> &raquo;</h6>
    <h1>Testimonials</h1>

    {% blurb "endorsements" %}
    
    {% if endorsements %}
        {% for endorsement in endorsements %}
        <div class="section2" id="endorsement-{{ endorsement.slug }}">
            <div class="article">
                <p>
                    {{ endorsement.endorsement|safe }}
                </p>
                <p>
                    &mdash; {{ endorsement.person }} <a href="{{ endorsement.company_url }}">{{ endorsement.company }}</a>
                </p>
            </div>
		    <hr>
        </div>
        {% endfor %}
        {% include "includes/call_to_action.html" %}
    {% else %}
       <p>No endorsements yet. <a href="{% url endo_admin_main %}">Create some</a>.</p>
    {% endif %}
    
    
{% endblock %}